import request from '@/utils/request'

// 查询退单信息列表
export function listBackOrder(query) {
  return request({
    url: '/business/backOrder/list',
    method: 'get',
    params: query
  })
}

// 查询退单信息详细
export function getBackOrder(id) {
  return request({
    url: '/business/backOrder/' + id,
    method: 'get'
  })
}

// 新增退单信息
export function addBackOrder(data) {
  return request({
    url: '/business/backOrder',
    method: 'post',
    data: data
  })
}

// 修改退单信息
export function updateBackOrder(data) {
  return request({
    url: '/business/backOrder',
    method: 'put',
    data: data
  })
}

// 删除退单信息
export function delBackOrder(id) {
  return request({
    url: '/business/backOrder/' + id,
    method: 'delete'
  })
}


// 操作店铺信息
export function orderOperate(query) {
  return request({
    url: '/business/backOrder/operate',
    method: 'post',
    params: query
  })
}
